﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace QuickApp.Core
{
    [ModelBinder(typeof(PageModelBinder))]
    public class PageInfo
    {
        /// <summary>
        /// 当前页面索引
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页多少记录
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 排序字段
        /// </summary>
        public string SortName { get; set; }

        /// <summary>
        /// 排序规则，'asc' or 'desc'
        /// </summary>
        public string SortOrder { get; set; }
    }
}
